home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 12 code / Components / Headers / MathComponentPrivate.h < prev    next >
Encoding:
Text File  |  1994-12-02  |  1.7 KB  |  77 lines  |  [TEXT/MMCC]

  1. /*
  2.     File:        MathComponentPrivate.h
  3.  
  4.     Contains:    Private header file for math component routines.
  5.  
  6.     Written by:    Gary Woodcock
  7.  
  8.     Copyright:    © 1992 by Apple Computer, Inc.
  9.  
  10.     Change History (most recent first):
  11.  
  12. */
  13.  
  14. //-----------------------------------------------------------------------
  15. // Includes
  16.  
  17. #ifndef    _MATHCOMPONENTPRIVATE_
  18. #define    _MATHCOMPONENTPRIVATE_
  19.  
  20. #include <QuickTimeComponents.h>
  21.  
  22. //-----------------------------------------------------------------------
  23. // Private constants
  24.  
  25. // Maximum number of instances that can be opened
  26. enum
  27. {
  28.     kMaxMathInstances = 3    
  29. };
  30.  
  31. // Component and interface revision levels
  32. enum
  33. {
  34.     mathInterfaceRevision = 0x00010001    
  35. };
  36.  
  37. enum
  38. {
  39.     kGenericError = -1L                    // Handy return code
  40. };
  41.  
  42. //-----------------------------------------------------------------------
  43. // Private types
  44.  
  45. typedef    struct    PrivateGlobals
  46. {
  47.     Component            self;                        // Our component ID
  48.     ComponentInstance    capturingComponentInstance;    // Capturing component instance
  49.     Component            delegateComponent;            // Delegate component ID
  50.     ComponentInstance    delegateComponentInstance;    // Delegate component instance
  51.     short                resRefNum;                    // Our resource refNum
  52.     
  53. }
  54. PrivateGlobals, *PrivateGlobalsPtr, **PrivateGlobalsHdl;
  55.  
  56.  
  57.  
  58. //-----------------------------------------------------------------------
  59. // Private prototypes
  60.  
  61.  
  62.  
  63. #ifdef DEBUG_IT
  64.  
  65. // Only need this prototype if we're running linked (for debugging)
  66. pascal    ComponentResult    MathDispatcher    (ComponentParameters    *params,
  67.                                          Handle                    storage);
  68.  
  69.                                          
  70. #endif DEBUG_IT
  71.                                              
  72. //-----------------------------------------------------------------------
  73.  
  74. #endif    _MATHCOMPONENTPRIVATE_
  75.  
  76. //-----------------------------------------------------------------------
  77.